#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);

//Begin5
    cout<<"length edge cube: ";
    int a; //a - length edge cube.
    cin>>a;
    cout<<"V= "<<a*a*a<<", S= "<<6*a*a<<endl<<endl;

//Begin6
    cout<<"cube a= ";
    cin>>a;
    cout<<"cube b= ";
    int b;
    cin>>b;
    cout<<"cube c= ";
    int c;
    cin>>c;
    cout<<"V= "<<a*b*c<<", S= "<<2*(a*b+b*c+a*c)<<endl<<endl;

//Integer5
    int t=0;
    do
    {
    if(t>0)
    cout<<"Error, a<b!"<<endl;
    cout<<"Enter A: ";
    cin>>a;
    cout<<"Enter B: ";
    cin>>b;
    t++;
    }
    while(a<=b);
    cout<<"Residue: "<<a%b<<endl<<endl;

    //Integer6
    do
    {
    cout<<"Enter two-digit number: ";
    cin>>a;
    }
    while(a<10);
    cout<<a/10<<a%((a/10)*10)<<endl<<endl;

//Boolean5
    cout<<"Enter A: ";
    cin>>a;
    cout<<"Enter B: ";
    cin>>b;
    cout<<"A>=0 or B<-2, ";
    if(a>=0||b<-2)
    {
        cout<<"its true.";
    }
    else
    {
        cout<<"its false.";
    }
    cout<<endl<<endl;

//Boolean6
    cout<<"Enter A: ";
    cin>>a;
    cout<<"Enter B: ";
    cin>>b;
    cout<<"Enter C: ";
    cin>>c;
    cout<<"A<B<C, ";
    if(b>a&&b<c)
    {
        cout<<"its true.";
    }
    else
    {
        cout<<"its false.";
    }

    return w.exec();
}
